package com.chagee.store.operation.server.facade;


import com.chagee.base.utils.SoaResponse;
import com.chagee.base.utils.SoaUtil;
import com.chagee.store.operation.api.request.AddEventRequestBO;
import com.chagee.store.operation.api.service.EventService;
import com.chagee.store.operation.server.service.biz.EventBizService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.validation.Valid;

/**
 * @author 闫海亮
 * @description:
 * @date 2023/8/9 13:56
 */
@Service
public class EventFacadeService implements EventService {

    @Autowired
    private EventBizService eventBizService;

    @Override
    public SoaResponse<Long, Void> addEvent(@Valid AddEventRequestBO addEventRequestBO) {
        return SoaUtil.ok(eventBizService.addEvent(addEventRequestBO));
    }
}
